<!--
 * @Description: 
 * @Autor: 郭赞
 * @Date: 2021-02-01 08:37:33
 * @LastEditors: 郭赞
 * @LastEditTime: 2021-02-10 08:44:30
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="format-detection" content="telephone=no" />
    <meta name="format-detection" content="email=no" />
    <title>首页</title>
    <link rel="stylesheet" href="../../css/api.css">
    <link rel="stylesheet" href="../../css/main.css">
    <link rel="stylesheet" href="../../css/vant.css">
    <!-- 引入样式 -->
    <style>
        .page-title {
            position: absolute;
            width: 100vw;
            text-align: center;
        }
    </style>
</head>

<body>
    <div class="app" v-cloak>
        <div class="rongzibaoxian">
            <div class="header status-bar">
                <span class="iconfont goback" @click="backPreviousPage">&#xe66f;</span>
                <div class="page-title">
                    {{insuranceName}}
                </div>
                <div></div>
            </div>
        </div>
    </div>
    <script src="../../script/api.js "></script>
    <script src="../../script/flexible.js "></script>
    <script src="../../script/fastclick.js "></script>
    <script src="../../script/vue.min.js "></script>
    <script src="../../script/iconfont.js "></script>
    <script src="../../script/vant.min.js"></script>
    <script src="../../script/restful.js"></script>
    <script src="../../script/common.js"></script>

    <script>
        apiready = function () {
            var vm = new Vue({
                el: '.app',
                data: {
                    insuranceName: '三方服务'
                },
                conponents: {},
                mounted() {
                    var header = $api.dom('.rongzibaoxian');
                    var headerH = $api.fixStatusBar(header);
                    this.getName()
                    api.openFrame({
                        name: 'financinginsurance_frm',
                        url: 'financinginsurance_frm.html',
                        rect: {
                            marginTop: headerH + 4,
                            marginBottom: api.pageParam.footerH,
                            w: 'auto'
                        },
                        pageParam: api.pageParam
                    });
        
                    setBDPageStart("三方服务")
                },
                methods: {
                    getName() {
                        var vm = this;
                        fnGet(interfaces.CONTENT_MODULE.SYSTEM.GET_SYSTEM, {}, false,
                            function (ret, err) {
                                console.log('ret', JSON.stringify(ret.data));
                                if (ret && ret.code === RESPONSE_OK) {
                                    vm.insuranceName = ret.data.insuranceName || '三方服务'
                                } else {
                                    toastBottom(ret ? ret.msg : '');
                                }
                            }
                        );
                    },
                    backPreviousPage() {
                        setBDPageEnd("三方服务")
                        api.closeWin();
                    }
                },
            })
            api.addEventListener({
                name: 'keyback'
            }, function (ret, err) {
                setBDPageEnd("三方服务")
                api.closeWin();
            });
        }
    </script>
</body>

</html>